const mongoose = require("mongoose");
const roleSchema = new mongoose.Schema({
    name: {
        type: String,
        unique: true, // 确保用户名唯一
    },
    disabled:Boolean,
    order:Number,
    btnroles:[],
    roles: [{ type: mongoose.Schema.Types.ObjectId, ref: 'menu' }],
});
const role = mongoose.model("role", roleSchema);
module.exports = {
    role
};
